<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"/>
      <title>Automatic Configuration.</title>
		<link rel="stylesheet" href="../css/reset.css" type="text/css" />
		<link rel="stylesheet" href="../css/repairConfig.css" type="text/css" />
		<script type="text/javascript" src="../js/jquery.js"></script>
		<script type='text/javascript' src='../js/DrDesktop_resources.js'></script>
      <script type='text/javascript' src='../../dwr/engine.js'></script>
      <script type='text/javascript' src='../../dwr/interface/ResourcesService.js'> </script>		
		<script>
      
         var messages={
            btnAyuda_root:[ drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt1"})+'\n'
               ,drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt2"})
               ,drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt3"}) +'\n'
               ,drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt4"})
               ,drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt5"})
            ]
            ,btnAyuda_contextName:[drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt6"}) + '\n\n'+ drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt7"}) +'\n\n http://localhost:8080/IndraDesktop/...\n\n'+ drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt8"})]
            ,btnAyuda_propertiesFile:[drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt9"}) + '\n\n' + drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt10"}) +'\n\n'+ drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt11"})]
            ,btnAyuda_tmpDir:[drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt12"}) + '\n\n' + drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt13"}) +'\n\n' + drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt14"}) ]
            ,btnAyuda_classesDir:[drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt27"}), "" ,drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt28"}), "" ,drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt29"})]
         }

         $(function(){
            $("#btnEnviar").mousedown(function(){
               $("#f1").get(0).submit();
            })
            $("#btnAyuda_contextName").mousedown(function(){showMessage(messages.btnAyuda_contextName)})
            $("#btnAyuda_root").mousedown(function(){showMessage(messages.btnAyuda_root)})
            $("#btnAyuda_propertiesFile").mousedown(function(){showMessage(messages.btnAyuda_propertiesFile)})
            $("#btnAyuda_tmpDir").mousedown(function(){showMessage(messages.btnAyuda_tmpDir)})
            $("#btnAyuda_classesDir").mousedown(function(){showMessage(messages.btnAyuda_classesDir)})            
         })
         
         function writeMessages(arrmsg){
            $("#errDiv").css({display:"block"})
            $("#errores").val(arrmsg.join('\r\n\r\n'))
         }

         function showMessage(arrMsg){
            alert(arrMsg.join('\n'))
         }

		</script>
      <style>

      </style>
	</head>



	<body>

      <table width="100%" height="100%">
         <tr>
            <td style="vertical-align:middle;" align="center"><div class="dialogContainer">
                  <div class="dialog1">
                     <div class="dialogTitleText"><script>document.write(drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt15"}))</script></div>
                  </div>
                  <div class="dialogContent">
		               <div id="errDiv" class="errorMessagesContainer">
                        <span class="inportantText"><script>document.write(drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt16"}))</script></span>
                        <textarea id="errores"></textarea>
                     </div>
                     <form id="f1" action="repairConfig.jsp" name="f1" method="post" >
                     	<script>document.write(drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt17"}))</script>
                        <span class="inportantText">DrDesktop.properties</span>
								<script>document.write(drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt18"}))</script>
								<script>document.write(drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt19"}))</script>
                        <br/><br/>
                        <span class="inportantText"><script>document.write(drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt20"}))</script></span>
                        <div class="textBoxBlock">
                           <div class="textBoxContainer">
                              <input id="contextName" name="contextName" type="contextName" value="">
                           </div>
                           <input id="btnAyuda_contextName" class="textBoxHelpBtn" type="button" value="Ayuda"/>
                        </div>
                        <br/>
                        <span class="inportantText"><script>document.write(drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt21"}))</script></span>
                        <div class="textBoxBlock">
                           <div class="textBoxContainer">
                              <input id="root" name="root" type="text" value="">
                           </div>
                           <input id="btnAyuda_root" class="textBoxHelpBtn" type="button" value="Ayuda"/>
                        </div>
                        <br/>
                        <span class="inportantText"><script>document.write(drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt22"}))</script></span>
                        <div class="textBoxBlock">
                           <div class="textBoxContainer">
                              <input id="propertiesFile" name="propertiesFile" type="contextName" value="/D:/ECLIPSE/WORK_SPACES/CALLISTO_2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/DruidaDesktopV2/WEB-INF/classes/DrDesktop.properties">
                           </div>
                           <input id="btnAyuda_propertiesFile" class="textBoxHelpBtn" type="button" value="Ayuda"/>
                        </div>
                        <br/>
                        <!--  Absolute path of the temp  directory -->
                        <span class="inportantText"><script>document.write(drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt23"}))</script></span>
                        <div class="textBoxBlock">
                           <div class="textBoxContainer">
                              <input id="tmpDir" name="tmpDir" type="text" value="">
                           </div>
                           <input id="btnAyuda_tmpDir" class="textBoxHelpBtn" type="button" value="Ayuda"/>
                        </div>
                        <br/>
                        <!-- ruta absoluta directorio de classes -->
                        <span class="inportantText"><script>document.write(drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt26"}))</script></span>
                        <div class="textBoxBlock">
                           <div class="textBoxContainer">
                              <input id="classesDir" name="classesDir" type="text" value="">
                           </div>
                           <input id="btnAyuda_classesDir" class="textBoxHelpBtn" type="button" value="Ayuda"/>
                        </div>
                        
                        <input type="hidden" name="fase" value="2"/>
                        <div class="sendBtnBlock">
                           <div class="sendBtnContainer">
                              <input type="button" id="btnEnviar" value="enviar" class="sendBtn" />
                           </div>
                        </div>

                     </form>
                  </div>
                  <div class="dialog3"></div>
               </div>
            </td>
         </tr>
      </table>
      
      <script>
         //I18n
         $(".textBoxHelpBtn").val( drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt24"}) )
         $(".sendBtn").val( drResources.get({bundle:"repairConfig",key:"repairConfig_html.txt25"}) )         
      </script>